/**
 * Copyright (C) 2012 Oleg Anastassov <o.anastasov@gmail.com>
 *
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package kz.kstu.ent.business.entity;

/**
 * Все именованные запросы хранятся в форме констант
 * и доступны отовсюду.
 * <p/>
 * Date: 27.03.12
 * Time: 22:21
 *
 * @author Oleg Anastassov
 */
public final class QueryNames {

    // Student.java
    public static final String STUDENT_FIND_ALL = "Student.findAll";
    public static final String STUDENT_FIND_BY_ID = "Student.findById";
    public static final String STUDENT_FIND_BY_SURNAME = "Student.findBySurname";

    // Exam.java
    public static final String EXAM_FIND_ALL = "Exam.findAll";

    // ResultSheet.java
    public static final String RESULT_SHEET_FIND_BY_EXAM_ID = "ResultSheet.findByExamId";

    // Grade.java
    public static final String GRADE_FIND_ALL = "Grade.findAll";

    // Account.java
    public static final String FIND_ACCOUNT_BY_LOGIN = "Account.findByLogin";
    public static final String FIND_ALL_ACCOUNTS = "Account.findAllAccounts";
    public static final String FIND_ACCOUNT_BY_LOGIN_AND_PASSWORD = "Account.findByLoginAndPassword";
    public static final String UPDATE_PASSWORD_BY_ACCOUNT_ID = "Account.updatePasswordById";

    // OTHER QUERIES
    // ...

    private QueryNames() {
    }

}
